package com.itheima.service.impl;

import com.itheima.dao.impl.EmpDaoImpl;
import com.itheima.service.EmpService;

import java.util.List;

public class EmpServiceImpl implements EmpService {
    private EmpDaoImpl empDao = new EmpDaoImpl();
    @Override
    public int addEmp(int num) {
        return empDao.addEmp(num);
    }

    public List<List> findAllEmpAndDept() {
        return empDao.findAllEmpAndDept();
    }
}
